package com.smart.model.dtomapper;

import com.smart.model.domain.ProjectUseControlDO;
import com.smart.model.request.ProjectUseControlRequest;
import com.smart.model.vo.ProjectUseControlVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectUseControlDtoMapper {

    ProjectUseControlDtoMapper INSTANCE = Mappers.getMapper(ProjectUseControlDtoMapper.class);

    /**
    * DO to VO
    * @param projectUseControlDO
    * @return
    */
    ProjectUseControlVO do2VO(ProjectUseControlDO projectUseControlDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectUseControlDO request2DO(ProjectUseControlRequest request);
}
